﻿@model List<RoleDisplayModel>
@{
    var modelItem = Model.FirstOrDefault().Role;
}

<table id="@Html.PrefixControllerName("List")" class="client-side-table list display">
    <thead>
        <tr>
            <th></th>
            <th>@Html.LabelFor(model => modelItem.Id)</th>
            <th>@Html.LabelFor(model => modelItem.Name)</th>
            <th>@Html.LabelFor(model => modelItem.Description)</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr row-id="@item.Role.Id">
                <td></td>
                <td>@Html.DisplayFor(model => item.Role.Id)</td>
                <td>@Html.DisplayFor(model => item.Role.Name)</td>
                <td>@Html.DisplayFor(model => item.Role.Description)</td>
                <td>@HtmlElements.RudDialogLinks(Html, item.Role.Id)</td>
            </tr>
        }
    </tbody>
</table>